from django.conf.urls.defaults import patterns, include, url

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
from researchSNS.QA.views import * 

urlpatterns = patterns('',
	(r'hello/', hello),
	(r'questions/$', question),
    (r'questions/unanswered/$',Unanswered),
    (r'questions/unanswered/pages/([1-9]\d*)/$',UnansweredPage),
	(r'questions/([1-9]\d*)/$', showQuestion),
    (r'questions/pages/([1-9]\d*)/$',showQuestion_by_page),
    (r'questions/tags/$',showTag),
    (r'questions/tags/pages/([1-9]\d*)/$',showTag_by_page),
    (r'questions/users/$',showQaUser),
    (r'questions/users/pages/([1-9]\d*)/$',showQaUser_by_page),
    (r'questions/users/([1-9]\d*)/$',qa_userpage),

	
    # page for details about how to add a question
    (r'ask/$',add_detail),

    # page to  add a question
    (r'add_question/$',add_question),

    # used to add question for a special question 
    (r'add_answer/([1-9]\d*)/$',add_answer_form),

     #Vote Pages
    (r'vote/question/([1-9]\d*)/up/$',vote_question_up),
    (r'vote/question/([1-9]\d*)/down/$',vote_question_down), 
    (r'vote/answer/([1-9]\d*)/up/$',vote_answer_up),
    (r'vote/answer/([1-9]\d*)/down/$',vote_answer_down),
    (r'mark_favorite/([1-9]\d*)/$',mark_favourite),
    
    # tag related
    (r'tags/(.+)/$', tag_related_question),
    (r'^vote/ajax/$',vote_ajax),
    
    #search pages
    (r'search/$',search),
    (r'search/pages/([1-9]\d*)/$',search_by_page),
    (r'tags/$',search),
    (r'users/$',search),

    #help pages
    (r'markdown_help/$',markdown_help),
    (r'faq/$',faq),
    (r'contact/$',contact),
	)

